﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="bol.aspx.cs" Inherits="Secretaria_bol"  Theme=""%>

<script src="../Libs/jquery-1.2.6.js" type="text/javascript"></script>

<script src="../Libs/jquery.dimensions.pack.js" type="text/javascript"></script>
<script>
window.onbeforeprint=beforePrint
window.onafterprint=afterPrint
function beforePrint()
{
	document.body.style.zoom =  document.getElementById("zoom").value/100;
}

function afterPrint()
{
	document.body.style.zoom = "100%";
}

$(document).ready(function() {
    ajustarTable();
})
var resizeTimer = null;
$(window).bind('resize', function() {
    if (resizeTimer) clearTimeout(resizeTimer);
    resizeTimer = setTimeout(ajustarTable, 100);
});

function ajustarTable() {
    $("DIV#tbl-container").width($(window).width());
    $("DIV#tbl-container").height($(window).height() - $("DIV#tbl-container").position().top);

}
</script>


<form id="form1" runat="server">
<div class="noprint" style="top:0; left:400px; position:absolute; background-color:Gray; border:solid 1px #000000;">
<table border="0" cellspacing="0" cellpadding="0" id="footer" style="width: 233px" >
  <tr>
    <td>
	    Zoom:</td><td><input type="text" value="80" name="zoom" id="zoom" size="3" runat="server"/>
        <asp:imagebutton id="ImageButton1" runat="server" imageurl="~/images/Guardar.jpg"
            onclick="ImageButton1_Click"></asp:imagebutton>
            </td><td>
        <img class="noprint" src="../datatest/print.jpg" onclick="miPrint();" style="cursor:hand;width:30px;height:30px" ></img>
        </td>
    </tr>
</table>
</div>

</form>
<script language="javascript">
//viewinit;
function miPrint(){
    window.print();   
}
</script>
